;;; init-elpa.el -- init elpa
;;; Commentary:
;;; Code:

(setq package-archives '(("gnu"    . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
                         ("nongnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/nongnu/")
                         ("melpa"  . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")))
;; (setq package-enable-at-startup nil)

(when (< emacs-major-version 27)
  (package-initialize))

(unless (fboundp 'use-package)
  (require 'package)
  (unless (package-installed-p 'use-package)
    (package-refresh-contents)
    (package-install 'use-package)))

(require 'use-package)
(setq use-package-always-ensure t)

(provide 'init-elpa)

;;; init-elpa.el ends here
